import {signIn} from '@/api/login'
import {signUp} from '@/api/signup'
export default {
    namespaced: true, // 封闭
    state: {},
    mutations: {},
    getters: {},
    actions: {
        // 登录
    async signIn(context, payload) {
        try {
          const { data } = await signIn(payload)
          return data
        } catch (err) {
          console.log(err)
        }
      },
           // 注册
    async signUp(context, payload) {
        try {
          const { data } = await signUp(payload)
          return data
        } catch (err) {
          console.log(err)
        }
      },
    }
}